//
//  testCenterCell.m
//  doubleEduStudents
//
//  Created by 盛洋 on 2021/1/14.
//  Copyright © 2021 shengYang. All rights reserved.
//

#import "testCenterCell.h"

@implementation testCenterCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.name_lab.font = AutoLabFont2;
    self.content_lab.font = AutoLabFont3;
}

-(void)setModel:(TestCenterModel *)model{
    _model = model;
    [self.ico_img sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.cover]] placeholderImage:DefaultIcon];
    _name_lab.text = [NSString stringWithFormat:@"试验名称：%@",model.title];
    if ([model.type intValue] == 1 ) {
        _content_lab.text = [NSString stringWithFormat:@"试验类型：互动实验"];
    }else{
        _content_lab.text = [NSString stringWithFormat:@"试验类型：模型展示"];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
